﻿@using sBlog.Net.Providers
@model sBlog.Net.Models.Account.NewUserModel

@{
    ViewBag.Title = string.Format("{0} || {1}", Model.Title, "Add a New User");
}

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Create Author</h3>
  </div>
    <div class="panel-body">
        @using (Html.BeginForm()) {
            @Html.ValidationSummary()
            <div>
                <fieldset>
                    <div class="editor-label">
                        @Html.LabelFor(m => m.UserDisplayName)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.UserDisplayName, new { @class = "inputBoxBig" })
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(m => m.UserEmailAddress)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.UserEmailAddress, new { @class = "inputBoxBig" })
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(m => m.RoleId)
                    </div>
                    <div class="editor-field">
                        @Html.DropDownListFor(m => m.RoleId, RolePossibilitiesProviderModel.AvailableRoles, new { @class = "dropDownBox" })
                    </div>
                    <br/>
                    <p class="pull-right">
                        <input type="submit" value="Add Author" class="btn btn-lg btn-primary" />
                    </p>
                </fieldset>
            </div>
        }
    </div>
</div>
